package com.jeomo.masterdata.starter.service.impl;

import com.jeomo.base.starter.service.impl.BaseServiceImpl;
import com.jeomo.masterdata.starter.entity.Region;
import com.jeomo.masterdata.starter.mapper.RegionMapper;
import com.jeomo.masterdata.starter.service.IRegionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 * @author:Jackpot
 * @create 2020-11-03 19:31
 */
@Service
public class RegionServiceImpl extends BaseServiceImpl<RegionMapper, Region> implements IRegionService {

    @Resource
    private RegionMapper regionMapper;

    @Override
    public List<Region> queryRegions(Integer pid) {
        return regionMapper.queryRegionsByPid(pid);
    }


    @Override
    public Region queryRegionById(Integer id) {
        return regionMapper.queryRegionById(id);
    }
}
